package com.example.app2024.tab;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

import com.example.app2024.R;


public class Blank01Fragment extends Fragment
{

      Button btn;

      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
      {
            // Inflate the layout for this fragment
            View view = inflater.inflate(R.layout.fragment_blank01, container, false);
            btn = view.findViewById(R.id.btn);
            btn.setOnClickListener(new View.OnClickListener()
            {
                  @Override
                  public void onClick(View v)
                  {
                        Toast.makeText(getActivity() , "点击了", Toast.LENGTH_SHORT).show();
                  }
            });
            return view;
      }
}